package app.service.impl;

import app.dao.DaoSystem;
import app.domain.Systems;
import app.service.ServiceSystem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class ServiceSystemImpl implements ServiceSystem {

    @Autowired
    private DaoSystem daoSystem;

    @Override
    @Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
    public Systems query(Integer id) {
        Systems query = daoSystem.getOne(id);
        return query;
    }
}
